IBM Books

Using and Configuring Features Version 3.3


Configuring and Monitoring IBM eNetwork Host On-Demand Client Cache

Host On-Demand Client Cache allows Web-based clients to connect to SNA host applications using a Java-based terminal emulation program, which connects the client to the host using TN3270. This support allows a IBM 2212 acting as a TN3270E server to cache the terminal emulation applet and serve it to client browsers upon request. The applet is retrieved from a Web Server the first time a client requests it and is stored in memory and made available to clients in response to HTTP get requests for the applet.

Notes:

  1. Host On-Demand Client Cache and the Web Server Cache feature cannot co-exist in a configuration.

  2. Host On-Demand runs only on the High Performance System Card.

This chapter describes how to configure the Host On-Demand Client Cache feature and use the Host On-Demand Client Cache monitoring commands. It contains:

See "External Cache Control Manager Overview" for information on using the External Cache Control Manager which will work with the Host On-Demand Client Cache.


Configuring the Host On-Demand Client Cache

Host On-Demand Client Cache must be used with Network Dispatcher. Before you use Host On-Demand Client Cache the first time you must:

  1. Access Network Dispatcher in talk 6 from the Config> prompt using the feature ndr command.

  2. Enable executor

  3. Add a cluster

  4. Add a port

  5. Add one or more servers.

Then you can use the configuration and monitoring commands to alter the Host On-Demand Client Cache environment.
Note:While the Network Dispatcher changes done via Talk 6 change the current running configuration, the changes for the Host On-Demand Client Cache do not change the current running configuration unless explicitly activated via the activate command in Talk 6 or via the Talk 5 feature HOD Client Cache. The exception to this is if the cluster/port for an HTTP Proxy is removed via Talk 6 feature NDR it will cause the HTTP proxy for the Host On-Demand Client Cache to also be removed from the current running configuration.

Example:

Config>f ndr
NDR Config>enable executor
NDR Config>add cluster
Cluster Address [0.0.0.0]? 113.3.1.10
FIN count [4000]?
FIN time out [30]?
Stale timer [1500]?
Cluster 113.3.1.10 has been added.
Fincount has been set to 4000 for cluster 113.3.1.10
Fintimeout has been set to 30 for cluster 113.3.1.10
Staletimer has been set to 1500 for cluster 113.3.1.10
NDR Config>add port
Cluster Address [0.0.0.0]? 113.3.1.10
Port number [80]? 80
Port type(tcp=1, udp=2, both=3) [3]?
Max. weight (0-100) [20]?
Only one pftp port per cluster allowed
Port mode (none=0, sticky=1 pftp=2 extcache=4 hod client cache=5) [0]? 5
Default server TCP connection timeout (Range 5-240 seconds) [120]?
Default client TCP connection timeout (Range 5-240 seconds) [120]?
Maximum partition size (1-4095 megabytes or 0 for no limit) [0]?
URL mask to identify Java applet [*.jar]?
      Default expiration time for Java applet
              (1-10080 minutes or 0 for no expiration) [60]?
Do you want to add a URL mask? [No]:
 
Host On-Demand Client Cache partition number 0 has been successfully created.
Requested port has been added to cluster 113.3.1.10
Port Mode has been set to hod for port 80 in cluster 113.3.1.10
Maxweight has been set to 20 for port 80 in cluster 113.3.1.10
Port Type has been set to Both for port 80 in cluster 113.3.1.10
NDR Config>exit

The following lists the example parameters and their descriptions.

cluster-address
Specifies the IP address for the cluster.
Note:Cluster IP Addresses are assumed to be on the same logical subnet as the previous hop router (IP router).

Valid values: Any valid IP address

Default value: 0.0.0.0

FIN-count
Specifies the number of connections that must be in FIN state before the executor tries to remove the unused connection information from the Network Dispatcher database after FIN-timeout or Stale-timer has elapsed.

Valid Values: 0 to 65535

Default value: 4000

FIN-timeout
Specifies the number of seconds, that a connection has been in the FIN state, after which the executor tries to remove the unused connection information from the Network Dispatcher database.

Valid Values: 0 to 65535

Default value: 30

Stale-timer
Specifies the number of seconds, that a connection has been inactive, after which the executor tries to remove a connection's information from the Network Dispatcher database.

Valid Values: 0 to 65535

Default value: 1500

port#
Specifies the port number of the protocol for this cluster.

Valid Values: 1 to 65535

Default value: 80

port-type
Specifies the types of IP traffic that can be load balanced on this port. Supported types are:

Valid Values: 1, 2, 3

Default value: 3

max-weight
Specifies the maximum weight for servers on this port. This affects how much difference there can be between the number of requests the executor will give each server.

Valid Values: 0 to 100

Default value: 20

port-mode
Specifies whether the port will feed all requests from a single client to a single server (known as sticky), use passive ftp (pftp), feed an external scalable cache array (extcache), use Host On-Demand Client Cache or use no particular protocols on this cluster (none).

Valid Values: 0,1,2,4,5, where:

Default value: 0

Default server TCP connection timeout
Specifies the time before a server connection expires.

Valid Values: 5 to 240 seconds

Default Value: 120 seconds

Default client TCP connection timeout
Specifies the time before a client connection expires.

Valid Values: 5 to 240 seconds

Default Value: 120 seconds

Do you want to modify Host On-Demand Client Cache partition?
Allows you to modify the configuration of the Host On-Demand Client Cache partition.

Valid Values: Yes or No

Default Value: No

Maximum partition size
Specifies the maximum amount of memory to be allocated to this Host On-Demand Client Cache partition. If this value exceeds the amount of memory currently available, it will be ignored and no maximum partition size will be imposed.

Valid Values: 1 to 4095 Megabytes or 0 (no maximum)

Default Value: 0 (no maximum)

URL mask to identify Java applets
Specifies the URL mask used to identify Java applets.

Valid Values: any URL mask

Default Value: *.jar*

Default expiration time for Java applet
Specifies the default expiration time that will apply to Java applets.

Valid Values: 1 - 10080 minutes, or 0 for no expiration

Default Value: 60

Do you want to add a URL mask?
Specifies a new URL mask to be added to the Host On-Demand Client Cache. URL masks allow the user to include or exclude individual objects or groups of objects by their Universal Resource Locator (URL).

Valid Values: Yes or No

Default Value: No

Wildcard characters can be used when specifying a URL mask. Wildcards can be used when configuring Network Dispatcher for Host On-Demand Client Cache or when using the add or modify url command from the HOD Client Cache prompt. The characters used as wildcards are an * (asterisk) or a # (number sign). Wildcards can be used in any position as a part of the URL.

The * represents no characters or all characters as a part of that URL:

Example: *abc.html would filter the following URL masks.

abc.html
finabc.html
defchtjqsprabc.html

The # represents any single character.

Example: ab#.html would filter the follow URL masks.

abc.html
abf.html
abo.html

You must use Network Dispatcher to configure the initial cluster and port for the Host On-Demand Client Cache feature. Once you have added the cluster and port, configuring the port mode as a Host On-Demand Client Cache port, you can then modify and display Host On-Demand Client Cache configuration parameters at the HOD Client Cache Config> prompt.

See *** for information about Network Dispatcher.


Accessing the Host On-Demand Client Cache Configuration Environment

To access the Host On-Demand Client Cache configuration environment, enter the f hod client cache command at the Config> prompt.

Config> f h
HOD Client Cache Config>

Host On-Demand Client Cache Commands

This section describes the Host On-Demand Client Cache Configuration commands. Table 16 lists the Host On-Demand Client Cache configuration commands. These commands specify the Host On-Demand Client Cache feature parameters. To activate these changes, restart the router.

Table 16. Host On-Demand Client Cache Configuration Commands Summary
 Command   Function 
? (Help) Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help".
 Activate   Activates Host On-Demand Client Cache partition, using the latest configuration. 
 Add   Adds a URL mask. 
 Delete   Deletes a URL mask or a partition. 
 List   Lists the Host On-Demand Client Cache information. 
 Modify   Modifies the Host On-Demand Client Cache information. 
Exit Returns you to the previous command level. See "Exiting a Lower Level Environment".

Activate

Use the activate command to initialize all Host On-Demand Client Cache partitions, using the latest configuration.

Syntax:

activate

Example:

HOD Client Cache Config>act ?
ACTIVATE ALL initializes the Host On-Demand Client Cache partition, using
the latest configuration.
If you want to keep the active configuration, use the
ENABLE PARTITION command.

Add

Use the add command to add a URL mask.

Syntax:

add
urlmask

Example:

HOD Client Cache Config>add url
New URL mask []? *newmask*
Include or Exclude from HOD Client Cache (i or e) [i]? i
Set default expiration time? [No]: y
Default expiration time
        (1-10080 minutes or 0 for no expiration) [0]? 60
The URL mask has been added to HOD Client Cache partition number 0.
Note:To add proxies and the partition, you must use Network Dispatcher and go through the add port or set port commands.

Delete

Use the delete command to delete a URL mask or the partition.

Syntax:

delete
partition
urlmask

partition
Deletes the Host On-Demand Client Cache partition.

urlmask
The name of the URL mask to be deleted from the Host On-Demand Client Cache.

Example:

HOD Client Cache Config>del part
HOD Client Cache partition number 0 has been deleted.

Example:

HOD Client Cache Config>delete url
URL masks defined : 1
    1: INCLUDE '*newmask*'
       Default expiration time: 60 minutes (1 hrs 0 mins)
URL mask number [1]?1
The URL mask for HOD Client Cache partition number 0 has been deleted.
Note:To delete a proxy you must use the Network Dispatcher feature and remove the associated port and/or cluster, or change the port mode of the port to something other than Host On-Demand Client Cache.

List

Use the list command to list the Host On-Demand Client Cache information.

Syntax:

list
all
external
partition
proxy
urlmask

all
Lists the partition, all the ports, proxies and masks defined in a Host On-Demand Client Cache.

external
Lists the information for the External Cache Control Manager.

partition
Lists the Host On-Demand Client Cache partition.

proxy
Lists the Host On-Demand Client Cache proxies.

urlmask
Lists the defined Host On-Demand Client Cache URL masks.

Example: list all

HOD Client Cache Config>list all
Host On-Demand Client Cache Partition 0
    Cluster address 113.3.1.10, Port 80
 
1 Host On-Demand Client Cache partition defined.

Example: list external

HOD Client Cache Config>list ext
External cache manager : Enabled
Port number            : 82
TCP timeout            : 120 seconds

Example: list partition

HOD Client Cache Config>list pa
Host On-Demand Client Cache Partition 0
Maximum partition size    : Unlimited
URL mask to identify Jave applets:   '*.jar'
      Default expiration time for Java applet:   60
Associated proxies (cluster port): (113.3.1.10 80)
 
1 Host On-Demand Client Cache partition defined.

Example: list proxy

HOD Client Cache Config>li pro
    1) Cluster address 113.3.1.10, Port 80, HOD Client Cache partition 0
HTTP proxy number [1]? 1
HTTP Proxy 1
HOD Client Cache Partition: 0
Cluster Address           : 113.3.1.10
Port Number               : 80
Server Connection Timeout : 120 seconds
Client Connection Timeout : 120 seconds

Example: list urlmask

HOD Client Cache Config>list url                                     
URL masks defined : 1
    1: INCLUDE '*newmask*'
       Default expiration time: 60 minutes (1 hrs 0 mins)

Modify

Use the modify command to modify the Host On-Demand Client Cache configuration information.

Syntax:

modify
external
partition
proxy
urlmask

external
Changes the characteristics of the External Cache Control Manager.

partition
Changes the characteristics of the existing Host On-Demand Client Cache partition.

proxy
Changes the characteristics of an existing HTTP proxy.

urlmask
Changes an existing URL mask.

Example: modify external

HOD Client Cache Config>mod ext
External cache manager port number (0 to disable) [82]? 83
TCP connection timeout (Range 5-240 seconds) [120]?
Do you want to modify the encryption key? [No]:
The external cache manager has been modified.

Example: modify partition

HOD Client Cache Config>modify partition                                 
Maximum partition size (1-4095 megabytes or 0 for no limit) [0]? 2000
URL mask to identify Java applet [*.jar]?
      Default expiration time for Java applet
              (1-10080 minutes or 0 for no expiration) [60]?
Host On-Demand Client Cache partition number 0 has been modified.        

Example: modify proxy

HOD Client Cache Config>mod proxy
    1) Cluster address 113.3.1.10, Port 80, HOD Client Cache partition 0
HTTP proxy number [1]? 1
Default server TCP connection timeout (Range 5-240 seconds) [120]? 200
Default client TCP connection timeout (Range 5-240 seconds) [120]?
The HTTP proxy has been modified.

Example: modify url

HOD Client Cache Config>modify url
URL masks defined : 1
    1: INCLUDE '*newmask*'
       Default expiration time: No expiration
URL mask number [1]?
New URL mask [*newmask*]?
Include or Exclude from HOD Client Cache (i or e) [i]?
Set default expiration time? [No]: y
Default expiration time
        (1-10080 minutes or 0 for no expiration) [0]? 60
URL mask number 1 has been modified.                         

Accessing the Host On-Demand Client Cache Monitoring Environment

To access the Host On-Demand Client Cache monitoring environment enter the f hod client cachecommand at the t 5 config prompt.

+f h
 

Host On-Demand Client Cache Monitoring Commands

Table 17 lists the Host On-Demand Client Cache monitoring commands.

Table 17. Host On-Demand Client Cache Monitoring Commands Summary
 Command   Function 
? (Help) Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help".
 Activate   Activates the Host On-Demand Client Cache information, using the latest configuration. 
 Clear   Clears all objects from the Host On-Demand Client Cache partition or clears Host On-Demand Client Cache statistics. 
 Enable   Enables the Host On-Demand Client Cache partition. 
 Delete   Deletes the Host On-Demand Client Cache partition, proxy or URL mask. 
 Disable   Disables the Host On-Demand Client Cache partition. 
 List   Lists the Host On-Demand Client Cache information. 
 Modify   Modifies the Host On-Demand Client Cache information. 
Exit Returns you to the previous command level. See "Exiting a Lower Level Environment".

Activate

Use the activate command to activate the Host On-Demand Client Cache partition or proxies, or a specific proxy.

Syntax:

activate
all
external
partition
proxy

all
Activates the Host On-Demand Client Cache partition, all the defined proxies and the defined External Cache Control Manager.

external
Activates the External Cache Control Manager.

partition
Activates the Host On-Demand Client Cache partition.

proxy
Activates a Host On-Demand Client Cache proxy.

Example: activate all

HOD Client Cache>act all
Host On-Demand Client Cache partition 0 must be disabled to reactivate it.
Do you wish to continue? [No]: y                                            

Example: activate partition

HOD Client Cache>act pa
Host On-Demand Client Cache partition 0 must be disabled to reactivate it.
Do you wish to continue? [No]: y
Do you wish clear this partition? [No]: y
Do you wish to enable this partition? [Yes]: y                      

Example: activate proxy

HOD Client Cache>activate pr
    1) Cluster address 113.3.1.10, Port 80, HOD Client Cache partition 0
Enter proxy number: [1]? 1
You are trying to activate an existing proxy.
Doing this will cause the proxy to be terminated before
being reactivated.
Do you wish to continue? [No]: y

Clear

Use the clear command to clear all objects from the Host On-Demand Client Cache partition or to clear statistics.
Note:Clearing the objects from the partition does not clear the statistics for the partition.

Syntax:

clear
partition
statistics

partition
Clears all the objects out of the partition.

statistics
Clears existing statistics for the partition.

Example: clear partition

HOD Client Cache>clear pa
HOD Client Cache partition 0 must be disabled to clear its contents.
Do you wish to continue? [No]: y
Do you wish to enable this partition? [Yes]: y 

Enable

Use the enable command to enable the Host On-Demand Client Cache partition.

Syntax:

enable
partition

Example:

HOD Client Cache>enable partition
 

Delete

Use the delete command to delete the Host On-Demand Client Cache partition.

Syntax:

delete
partition

partition
Deletes the Host On-Demand Client Cache partition.

Example: delete partition

HOD Client Cache>delete partition
WARNING: This will delete partition and free all memory!
Do you wish to continue?  [No] : yes 
HOD Client Cache>                                                          

Disable

Use the disable command to disable the Host On-Demand Client Cache partition.

Syntax:

disable
partition

Example:

HOD Client Cache>disable partition
 

List

Use the list command to display the information for the Host On-Demand Client Cache partition, all policies and proxies, or a specified policy or proxy.

Syntax:

list
all
delete
depend
external
item
partition
policy
proxy

all
Lists the Host On-Demand Client Cache partition, all policies, and all proxies.

delete
Lists the last 100 items deleted from the Host On-Demand Client Cache partition.

depend
Lists the dependency table for the partition.

external
Lists the information for the External Cache Control Manager.

item
Lists the current items in the Host On-Demand Client Cache partition.

partition
List the Host On-Demand Client Cache partition information.

policy
Lists the Host On-Demand Client Cache policy information.

proxy
Lists the Host On-Demand Client Cache proxy information.

Example: list all

HOD Client Cache>list all 
HOD Client Cache Partition 0          Status: Enabled
     Cluster address: 113.3.1.10  Port 80
1 partition(s) active.
External Cache Manager Port: 83
         Connection timeout: 120 seconds

Example: list delete

HOD Client Cache>list delete 
 
Delete Table
URL string -- hit count
=======================
'/abc.html' -- 4
'/soccer.html' -- 2
'/tennis.html' -- 1
'/curling.html' -- 3

Example: list dependency

HOD Client Cache>list depend 
Dependency table for Partition 0
--------------------------------------
dep: tennis_info
   count of URLs: 2
   URLs:
         tennis_roster.html
         tennis_schedule.html
dep: soccer_info
   count of URLs: 2
   URLs:
         soccer_roster.html
         soccer_schedule.html
dep: schedule
   count of URLs: 2
   URLs:
         tennis_schedule.html
         soccer_schedule.html

Example: list external

HOD Client Cache>list external
External Cache Manager Port: 83
         Connection timeout: 120 seconds
         Current number of connections: 0

Example: list item

HOD Client Cache>list item 
 
Current number of items:  5
URL String -- hit count
=======================
'/' -- 2
'/file5k.html' -- 1
'/file4k.html' -- 1
'/file2k.html' -- 3
'/file1k.html' -- 1

Example: list partition

HOD Client Cache>list partition
HOD Client Cache Partition 0          Status: Enabled
     Cluster address: 113.3.1.10, Port 80
Partition size: Current - 0 bytes  Highest - 0 bytes   Maximum - Unlimited
Number of objects: Current - 0  Highest - 0 Maximum - Unlimited
Maximum object size: Unlimited
HOD Client Cache purge interval  : 600 minute(s)
Hit ratio: 0%
Total number of hits:  0
Total number of misses:  0
Object Excluded (Object too large):        0
                (Object expired):          0
                (DONT CACHE header):       0
                (URL Mask excluded):       0
                (Image excluded):          0
                (Static object excluded):  0
                (Dynamic object excluded): 0
                (Cache disabled):          0
Objects explicitly Included: 0
Total number of purged objects: 0
Purged objects (Cache full):     0
               (Object stale):   0
               (Purged by user): 0
               (Invalidation):   0

Example: list policy

HOD Client Cache>list policy
URL mask to identify Java Applets: *.jar
     Default lifetime: 60 minute(s)
URL masks defined:
  1: INCLUDE *newmask*
      Default expiration time: 60 minutes (1 hrs 0 mins)

Example: list proxy

HOD Client Cache>list proxy
    1)   Cluster address 113.3.1.10, Port 80, HOD Client Cache Partition 0
Enter proxy number: [1]? 1
Proxy 1: assigned to HOD Client Cache partition 0
Cluster address: 113.3.1.10     Port number: 80
Server Connection Timeout: 120 seconds
Client Connection Timeout: 120 seconds
Client connections: 0 current / 0 at highest point
Server connections: 0 current / 0 at highest point
Total cache hits: 0
Total cache misses: 0
Cache misses (object not in cache): 0
             (unsupported method):  0
             (can't send response): 0
             (non-cached request):  0

Modify

Use the modify command to modify the External Cache Control Manager.

Syntax:

modify
external

Example: modify external

HOD Client Cache Config>mod ext
External cache manager port number (0 to disable) [83]? 82
TCP connection timeout (Range 5-240 seconds) [120]?
Do you want to modify the encryption key? [No]: n


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]